package dblayer;

import static org.junit.Assert.fail;

import java.util.ArrayList;
import java.util.Iterator;

import modellayer.Company;

import org.junit.Test;

public class KeyPersonsCompaniesDBTest {

	private KeyPersonsCompaniesDB db = new KeyPersonsCompaniesDB();
	
	@Test
	public void test() {
		ArrayList<Company> stefansCompanies = db.getCompaniesFromKeyPerson(2);
		
		Iterator<Company> it = stefansCompanies.iterator();
		
		while (it.hasNext()) {
			Company c = it.next();
			System.out.println("Firma: "+c.getCvr()+", "+c.getName());
		}
	}

}
